<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">

	<title>My JSP 'authority.jsp' starting page</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="easyui/css/easyui.css">
	<link rel="stylesheet" type="text/css" href="easyui/css/icon.css">
	<link rel="stylesheet" type="text/css" href="easyui/css/demo.css">
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="easyui/js/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="easyui/js/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript" src="administrator/js/authority.js"></script>

</head>

<body>
<div class="easyui-layout" data-options="fit:true,border:false">
	
	<div  align="center">
		<form id="findform" action="">
		      <table title="查询条件">
		      	<tr>
		      		<td>权限名称:<input type="text" name="authorityName" value=""></td>
		      		<td>权限类型:<input type="text" name="flag" value=""></td>
		      		<td>
		      			<a id="btnfind" class="easyui-linkbutton"
									data-options="iconCls:'icon-search',plain:true"
									onclick="onFind()">查询</a>
		      			<a id="clearbtn" class="easyui-linkbutton"
									data-options="iconCls:'icon-clear',plain:true"
									onclick="clearForm()">清空</a>
		      		</td>
		      	</tr>
		      
		      </table>
		</form>
	</div>
	
	<table id="tg" title="权限基础信息" style="height:600px;">
		<thead>
			<tr>
				<th data-options="field:'authorityName',width:180">权限名称</th>
				<th data-options="field:'pid',width:60,align:'right'">父ID</th>
				<th data-options="field:'flag',width:80">权限类型</th>
				<th data-options="field:'url',width:80">访问路径</th>
				<th data-options="field:'memo',width:120">描述</th>
			</tr>
		</thead>
	</table>

	<div id="tg_toolbar" align="right" style="width: 100%">
		<a href="javascript:void(0)" class="easyui-linkbutton lb" onclick="collapseAll()">关闭全部</a>
		<a href="javascript:void(0)" class="easyui-linkbutton lb" onclick="expandAll()">展开全部</a>
		<a href="javascript:void(0)" class="easyui-linkbutton " data-options="iconCls:'icon-add',plain:true" onclick="onAdd()">增加</a>
	    <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="onUpdate()">编辑</a>
		<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="onDelete()">删除</a>  
		<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-undo',plain:true" onclick="reject()">取消</a>
	</div>
	
	<div id="op_menu" class="easyui-menu" style="width: 120px;">
		<div onclick="onAdd()">添加</div>
		<div onclick="onUpdate()">修改</div>
		<div onclick="onDelete()">删除</div>
	</div>
	
	<!--添加/编辑弹出框  -->

	<div id="tg_dd" title="权限信息" class="easyui-dialog" style="padding:10px; width: 500px;height: 400px;" data-options="iconCls:'large_smartart',modal:true,closed:true">

		  <form id="myform" name="edit_authority" action="" method="post">
		      <input type="hidden" name="id" value="" />
		      <input type="hidden" name="pid" value="" />
		      <table>
		      	<tr>
		      		<td>权限名称:</td>
		      		<td><input type="text" name="authorityName" class="easyui-textbox" data-options="required:true,missingMessage:'权限名称必填'" value=""></td>
		      	</tr>
		      	<tr>
		      		<td>权限类型:</td>
		      		<td><input type="text" name="flag" class="easyui-textbox" data-options="required:true,missingMessage:'权限类型必填'" value=""></td>
		      	</tr>
		      	<tr>
		      		<td>访问路径:</td>
		      		<td><input type="text" name="url" class="easyui-textbox" value=""></td>
		      	</tr>
		      	<tr>
		      		<td>描述:</td>
		      		<td><textarea name="memo" cols="16" rows="5"></textarea></td>
		      	</tr>
		      	<tr>
		      		<td></td>
		      		<td>
		      			<a id="btnsummit" class="easyui-linkbutton" >确定</a>
		      			&nbsp;&nbsp;&nbsp;&nbsp;
		      			<a id="btncancer" class="easyui-linkbutton">取消</a>
		      		</td>
		      	</tr>
		      
		      </table>
			
	      </form>
	</div>
	
</div>	


</body>
</html>
